package com.enation.app.javashop.api.client;

import com.enation.app.javashop.service.shop.ShopRoleManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;
import java.util.Map;

/**
 * @author fk
 * @version v2.0
 * @Description:
 * @date 2018/8/17 15:01
 * @since v7.0.0
 */
@RestController
@RequestMapping("/client/shop-role")
@ApiIgnore
public class ShopRoleClientController {


    @Autowired
    private ShopRoleManager shopRoleManager;

    @GetMapping
    public Map<String, List<String>> getRoleMap(@RequestParam("seller_id") Long sellerId) {

        return shopRoleManager.getRoleMap(sellerId);
    }

}
